﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FilStartUps_GetLatestEvents.ascx.cs"
    Inherits="FilStartUps.Controls.FilStartUps_GetLatestEvents" %>

<%@ Import Namespace="FilStartUps.Helper" %>
   
 <div style="padding:0px 20px 20px 20px">
<h2>
    Latest Events <asp:ImageButton runat="server" ID="btneventrss" ImageUrl="../Content/images/feed-icon.png"
                OnClick="btneventrss_Click" />
</h2>
<div class="lbe_box">
   
    <asp:DataList runat="server"
        OnItemCommand="dl_latestevent_ItemCommand"
     ID="dl_latestevent" RepeatColumns="1" RepeatLayout="Table">
        
        <ItemTemplate>
        
           <img src="../Content/images/filstartups_list.jpg" alt="arrow" /> 
        <asp:Label runat="server" ID="lbeventid" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "eventidPK") %>'></asp:Label>
           <asp:LinkButton runat="server" ID="lbeventname" CommandName="SelectRow"
                         Text='<%# DataBinder.Eval(Container.DataItem, "eventtitle") %>'></asp:LinkButton>
           <%-- <br />Start:
            <asp:Label runat="server" ID="startevent" Text='<%# ConvertDate(DataBinder.Eval(Container.DataItem, "startdate").ToString()) %>'></asp:Label>
            <br />End:
            <asp:Label runat="server" ID="endevent" Text='<%# ConvertDate(DataBinder.Eval(Container.DataItem, "enddate").ToString()) %>'></asp:Label>
            <br />--%>
            <br />
                <div style="padding-left:10px">
            <asp:Literal runat="server" ID="lbeventdesc" Text='<%# HtmlRemoval.StripTagsCharArray(Truncate(DataBinder.Eval(Container.DataItem, "eventdescription").ToString())) %>'></asp:Literal>
  
        </div>
        </ItemTemplate>
        
    </asp:DataList>
    </div>  
</div>
